//
//  GameListCell.m
//  战旗TV
//
//  Created by 于洋 on 16/2/19.
//  Copyright © 2016年 于洋. All rights reserved.
//

#import "GameListCell.h"

@interface GameListCell ()

@end
@implementation GameListCell

- (instancetype) initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (!self) return nil;
    [self setup];
    return self;
}

- (void)setup{
    UIView *bgView  = [[UIView alloc]initWithFrame:CGRectMake(0, 0, (WIDTH-40)/3, (WIDTH-40)/3)];
    bgView.backgroundColor = [UIColor whiteColor];
    [self addSubview:bgView];
    
    //    _coverImg = [[UIImageView alloc]initWithFrame:CGRectMake(30, 20, bgView.frame.size.width-60, bgView.frame.size.width-60)];
    //    _coverImg.layer.masksToBounds = YES;
    //    _coverImg.layer.cornerRadius = 10;
    //    [bgView addSubview:_coverImg];
    _imagelab = [[UILabel alloc]initWithFrame:CGRectMake(30, 20, bgView.frame.size.width-60, bgView.frame.size.width-60)];
    _imagelab.layer.cornerRadius = (bgView.frame.size.width-60)/2;
    _imagelab.layer.masksToBounds = YES;
    [bgView addSubview:_imagelab];
    
    
    _lable = [[UILabel alloc]initWithFrame:CGRectMake(0, bgView.frame.size.width-45, bgView.frame.size.width, 40)];
    _lable.textColor  = UIColorFromRGB(0x333333);
    _lable.font = [UIFont fontWithName:@"Heiti SC" size:14 *MYWIDTH];
    _lable.textAlignment = NSTextAlignmentCenter;
    [bgView addSubview:_lable];
}


@end
